<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>万朗 2350300097</title>
</head>
<body>
<jsp:include page="head.jsp"/>
<%
    String number = request.getParameter("number");
    String url;
    if(number != null){
        int n = Integer.parseInt(number);
        if(n>=1 && n<=50){
            url = "two.jsp";
        }
        else if(n>=51 && n<=100){
            url = "three.jsp";
        }
        else{
            url = "error.jsp";
        }
%>
        <jsp:forward page="<%=url%>">
            <jsp:param value="<%=n %>" name="number"/>
        </jsp:forward>
<%}%>
<p><font size="3">这是one.jsp页面</font></p>
<form name="form1" method="post" action="">
    <p><font size="3">请输入1-100之间的整数</font></p>
        <input type="text" name="number">
    <p id="errorMessage" class="error"></p>
    <p><font size="3"><input type="submit" name="Submit" value="送出"></font></p>
</form>
</body>
</html>